package com.stefanini.pe.bbva.mbl.in.dao;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.stefanini.pe.bbva.mbl.carga.in.to.LogAccion;
import com.stefanini.pe.bbva.mbl.carga.in.to.LogFallo;
import com.stefanini.pe.bbva.mbl.in.dao.iface.LogFalloDAO;

public class LogFalloDAOImpl  extends SqlMapClientDaoSupport implements LogFalloDAO{
	public void insert(LogFallo logFallo) {
        getSqlMapClientTemplate().insert("IIPG_TIIPG_LOG_FALLO.ibatorgenerated_insert", logFallo);
    }
	public List selectAll() {
	      List records = (List) getSqlMapClientTemplate().queryForList(
		  "IIPG_TIIPG_LOG_FALLO.ibatorgenerated_selectAll",null);
		  return records;
	}

	
	public List selectByCriteria(LogFallo logFallo)  {
			List records = (List) getSqlMapClientTemplate().queryForList(
			"IIPG_TIIPG_LOG_FALLO.ibatorgenerated_selectByCriteria",logFallo);
		return records;
	}

}
